package com.ticket.sass.admin.dto.input.commodity.category;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author ywb
 * @date 2024-03-23 15:25
 */
@Data
@ApiModel
public class CommodityCategoryUpdInput {
    @NotNull(message = "ID不能为空")
    @ApiModelProperty(value = "商品分类ID")
    private Long id;
    
    @NotBlank(message = "类名不能为空")
    @ApiModelProperty(value = "类名")
    private String name;
    
    @ApiModelProperty(value = "图标")
    private String icon;
    
    @ApiModelProperty(value = "排序")
    private Integer sort;
}
